.vp-doc {
  position: relative;
}

/**
 * Headings
 * -------------------------------------------------------------------------- */
.vp-doc h1,
.vp-doc h2,
.vp-doc h3,
.vp-doc h4,
.vp-doc h5,
.vp-doc h6 {
  position: relative;
  font-weight: 600;
  color: var(--vp-c-text-1);
  overflow-wrap: break-word;
  outline: none;
}

.vp-doc h1 {
  font-size: 28px;
  line-height: 40px;
  letter-spacing: -0.02em;
}

.vp-doc h2 {
  padding-top: 24px;
  margin: 48px 0 16px;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  border-top: 1px solid var(--vp-c-divider);
  transition: border-top var(--vp-t-color), color var(--vp-t-color);
}

.vp-doc h2:first-of-type {
  border-top: none;
}

.vp-doc h3 {
  margin: 32px 0 16px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.vp-doc h4 {
  margin: 24px 0 16px;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.01em;
}

.vp-doc h5,
.vp-doc h6 {
  margin: 24px 0 16px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.01em;
}

.vp-doc .header-anchor {
  position: relative;
  color: currentcolor;
  text-decoration: none;
}

.vp-doc .header-anchor::before {
  position: absolute;
  left: -0.75em;
  font-size: 0.8em;
  color: var(--vp-c-brand-1);
  content: var(--vp-header-anchor-symbol);
  opacity: 0;
  transition: color var(--vp-t-color);
}

.vp-doc .header-anchor:hover {
  color: inherit;
}

.vp-doc .header-anchor:hover::before {
  opacity: 1;
}

.vp-doc .header-anchor:focus-visible {
  outline: none;
}

.vp-doc .header-anchor:focus-visible::before {
  position: absolute;
  left: -0.75em;
  color: var(--vp-c-brand-1);
  content: var(--vp-header-anchor-symbol);
  outline: auto;
}

@media (min-width: 768px) {
  .vp-doc h1 {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.02em;
  }
}

.vp-doc img {
  display: inline-block;
}

.vp-doc img + img {
  margin-left: 0.5rem;
}

.vp-doc a img + span {
  margin-left: 0.2rem;
}

/**
 * Paragraph and inline elements
 * -------------------------------------------------------------------------- */
.vp-doc p,
.vp-doc summary {
  margin: 16px 0;
  color: var(--vp-c-text-1);
  transition: color var(--vp-t-color);
}

.vp-doc p {
  line-height: 28px;
}

.vp-doc blockquote {
  padding-left: 16px;
  margin: 16px 0;
  color: var(--vp-c-text-2);
  border-left: 2px solid var(--vp-c-divider);
  transition: border-color var(--vp-t-color), color var(--vp-t-color);
}

.vp-doc blockquote > p {
  margin: 0;
  font-size: 16px;
}

.vp-doc a {
  font-weight: 500;
  color: var(--vp-c-brand-1);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--vp-t-color), opacity var(--vp-t-color), text-underline-offset var(--vp-t-color);
}

@media print {
  .vp-doc a[href^="http://"]::after, .vp-doc a[href^="https://"]::after {
    content: " (" attr(href) ") ";
  }
}

.vp-doc :not(h1, h2, h3, h4, h5, h6) a:hover {
  color: var(--vp-c-brand-2);
  text-underline-offset: 5px;
}

.vp-doc strong {
  font-weight: 600;
}

/**
 * Lists
 * -------------------------------------------------------------------------- */
.vp-doc ul,
.vp-doc ol {
  padding-left: 1.25rem;
  margin: 16px 0;
}

.vp-doc ul {
  list-style: disc;
}

.vp-doc ol {
  list-style: decimal;
}

.vp-doc li + li {
  margin-top: 8px;
}

.vp-doc li > ol,
.vp-doc li > ul {
  margin: 8px 0 0;
}

/**
 * Table
 * -------------------------------------------------------------------------- */
.vp-doc table {
  display: block;
  margin: 20px 0;
  overflow-x: auto;
  border-collapse: collapse;
}

.vp-doc tr {
  background-color: var(--vp-c-bg);
  border-top: 1px solid var(--vp-c-divider);
  transition: var(--vp-t-color);
  transition-property: background-color, border-top;
}

.vp-doc tr:nth-child(2n) {
  background-color: var(--vp-c-bg-soft);
}

.vp-doc th,
.vp-doc td {
  padding: 8px 16px;
  border: 1px solid var(--vp-c-divider);
  transition: border var(--vp-t-color);
}

.vp-doc th {
  font-size: 14px;
  font-weight: 600;
  color: var(--vp-c-text-2);
  text-align: left;
  background-color: var(--vp-c-bg-soft);
  transition: var(--vp-t-color);
  transition-property: color, background-color, border;
}

.vp-doc td {
  font-size: 14px;
}

/**
 * Decorational elements
 * -------------------------------------------------------------------------- */
.vp-doc hr {
  margin: 16px 0;
  border: none;
  border-top: 1px solid var(--vp-c-divider);
  transition: border-top var(--vp-t-color);
}

/**
 * inline Code
 * -------------------------------------------------------------------------- */

.vp-doc :not(pre, h1, h2, h3, h4, h5, h6) > code {
  font-size: var(--vp-code-font-size);
  color: var(--vp-code-color);
  transition: color var(--vp-t-color);
}

.vp-doc :not(pre) > code {
  padding: 3px 6px;
  background-color: var(--vp-code-bg);
  border-radius: 4px;
  transition: color var(--vp-t-color), background-color var(--vp-t-color);
}

.vp-doc h1 > code,
.vp-doc h2 > code,
.vp-doc h3 > code,
.vp-doc h4 > code {
  font-size: 0.9em;
}

.vp-doc a > code {
  color: var(--vp-code-link-color);
  transition: color var(--vp-t-color);
}

.vp-doc a:hover > code {
  color: var(--vp-code-link-hover-color);
}

.vp-doc mark {
  padding: 2px;
  color: currentcolor;
  background-color: transparent;
  background-image:
    linear-gradient(
      to bottom,
      transparent 25%,
      var(--vp-mark-color-soft) 30%,
      var(--vp-mark-color-soft) 50%,
      var(--vp-mark-color) 75%,
      var(--vp-mark-color) 90%,
      var(--vp-mark-color-soft) 100%
    );
  background-repeat: no-repeat;
  background-position: 0 1em;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  animation: mark-highlight 1.5s 0.5s forwards;
}

.vp-doc :not(h1,h2,h3,h4,h5,h6) mark {
  font-weight: bold;
}

@keyframes mark-highlight {
  0% {
    background-position: 0 1em;
  }

  100% {
    background-position: 0 0;
  }
}

/**
 * External links
 * -------------------------------------------------------------------------- */
:is(.vp-external-link-icon, .vp-doc a[href*="://"], .vp-doc a[target=_blank]):not(.no-icon)::after {
  --icon: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M0 0h24v24H0V0z' fill='none' /%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z' /%3E%3C/svg%3E");

  display: inline-block;
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  margin-top: -1px;
  margin-left: 4px;
  color: var(--vp-c-text-3);
  background: currentcolor;
  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
}

.vp-external-link-icon::after {
  content: "";
}

/* prettier-ignore */
.external-link-icon-enabled :is(.vp-doc a[href*="://"], .vp-doc a[target=_blank])::after {
  color: currentcolor;
  content: "";
}
